package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.sky.result.Result;

import java.util.List;

/**
 * @author ghy
 * @version 1.0.1
 * @date 2023-04-27 15:03:41
 */
public interface ShoppingCartService {

    /**
     * 加入购物车
     * @param shoppingCartDTO
     * @return
     */
    Result add(ShoppingCartDTO shoppingCartDTO);

    Result<List<ShoppingCart>> list();

    Result clean();

}
